package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("t_safety_training_education")
@ApiModel(value = "SafetyTrainingEducation", description = "三级安全教育培训内容")
public class SafetyTrainingEducation {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;
    
    @ApiModelProperty("培训卡ID")
    private Long cardId;
    
    @ApiModelProperty("教育类型(1:入职教育,2:车间教育,3:班组教育)")
    private Integer educationType;
    
    @ApiModelProperty("教育人职务")
    private String educatorPosition;
    
    @ApiModelProperty("教育人签名")
    private String educatorSignature;
    
    @ApiModelProperty("教育人日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate educatorDate;

    @ApiModelProperty("受教育人工种")
    private String educatedJobType;
    
    @ApiModelProperty("受教育人签名")
    private String educatedSignature;
    
    @ApiModelProperty("受教育人日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate educatedDate;
    
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    
    @ApiModelProperty("创建人")
    private String createBy;
    
    @ApiModelProperty("更新人")
    private String updateBy;
    
    @TableLogic
    @ApiModelProperty("是否删除")
    private Boolean isDeleted;
} 